<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>top</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta http-equiv="content-type" content="text/html;charset=utf-8">
<link rel="stylesheet" type="text/css"
	href='<c:url value="/uikit-2.25.0/css/uikit.min.css"/>'>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/uikit-2.25.0/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript"
	src='<c:url value="/uikit-2.25.0/js/uikit.min.js"/>'></script>

</head>

<style type="text/css">
	body {
		background: url(<c:url value='/images/bg_book.jpg'/>) no-repeat 0px;
		height:150px;
	}
	a {
		text-transform:none;
		text-decoration:none;
		font-size: 16px;
		color:pink;
	} 
	a:hover {
		text-decoration:underline;
	}
	span{
		    font-size: 24px;
	}
	.right_box{
		text-align: right;
		margin-right:150px;
	}
	h1{
		text-align: center;
		text-shadow: 3px 1px 1px rgb(255,251,209);
		line-height:2em;
	}
</style>
	<script type="text/javascript">
		function loginQuit(){
			var url="${pageContext.request.contextPath}/userServlet?method=loginQuit";
			console.log(url);
			window.location.href=url;
		}
	</script>
  </head>
  
 <body>
<h1>叮叮书屋</h1>
<div style="font-size: 10pt;">
		<c:choose>
				<c:when test="${ not empty exitUser }">
						<span> 您好：${exitUser.username }&nbsp;&nbsp;|&nbsp;&nbsp;</span>
						<a href="<c:url value='/jsps/cart/list.jsp'/>" target="body">我的购物车</a>&nbsp;&nbsp;|&nbsp;&nbsp;
						<a class ="" href='<c:url value="/orderServlet?method=findByUid"/>' target="body">我的订单</a>&nbsp;&nbsp;|&nbsp;&nbsp;
						<a class="uk-button uk-button-success" target="_parent" onclick="loginQuit()">退出</a>
				</c:when>
				<c:otherwise>
						<div class="right_box">
								<a href="<c:url value='/jsps/user/login.jsp'/>" target="_parent">登录</a> |&nbsp; 
								<a href="<c:url value='/jsps/user/regist.jsp'/>" target="_parent">注册</a>
						</div>
					
				</c:otherwise>
		</c:choose>
</div>
  </body>
</html>
